package com.gupao.strategydemo.orderpay.payport;

import com.gupao.strategydemo.orderpay.Payment;

public enum  PayType {
    ALI_PAY(new AliPay()),
    WECHAT_PAY(new WechatPay()),
    UNION_PAY(new UnionPay());

    private Payment payment;

    PayType(Payment payment){
        this.payment=payment;
    }

    public Payment getPayment(){
        return this.payment;
    }

}
